package com.zzyl.mapper;

import com.zzyl.entity.Member;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MemberMapper {
    // 1：根据id 查询会员信息
    Member getMemberById(Long id);

    // 2：添加会员
    void insertMember(Member member);

    // 3：更新会员
    void updateMember(Member member);

    // 4：条件更新会员
    void updateSelectiveMember(Member member);

    //5： 删除会员
    void deleteMemberById(Long id);


    // 6：查询所有会员
    List<Member> getAllMembers();

    // 7：根据openid查询会员
    Member getByOpenid(String openid);
}
